# 导包
import logging

# 设置日志级别
# logging.basicConfig(level=logging.DEBUG)

# 设置修改默认的输入日志格式
fmt = '%(asctime)s %(levelname)s [%(name)s] [%(filename)s(%(funcName)s:%(lineno)d)] - %(message)s'
logging.basicConfig(level=logging.DEBUG, format=fmt)

# 调用 指定级别，输入日志信息
logging.debug("this is a debug info...")
logging.info("this is a info info...")
logging.warning("this is a warning info...")
logging.error("this is a error info...")
logging.critical("this is a critical info...")
